#include <iostream>
#include <list>

int main()
{
	std::list<int> l{1, 2, 3, 4, 5};
	for (auto it = l.begin(); it != l.end(); ++it)
		(*it)++;
	for (auto i : l)
		std::cout << i << ' ';
	std::cout << '\n';
}
